<!DOCTYPE html>
<html lang="cn">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {

            border: 1px solid #ccc;
            width: 100px;
            height: 100px;
        }
    </style>
</head>

<body>
    <div id="app">houdunren.com</div>
    <script>
        const app = document.querySelector('#app')
        app.addEventListener('click',  (e)=> {
            console.log(e.target)
            e.target.hidden = true
        })
    </script>
</body>

</html>